# -*- coding:utf-8 -*-
"""
Created on 29.01.2010

@author: r4smus
"""

import pylab
import math


def calcYValue(xValue):
    return math.sqrt((1 - xValue**2))
xList = []
i = -1.0
while i <= 1.0:
    xList.append(i)
    i += 0.1

yList = []
j = 0
while len(xList) != len(yList):
    yList.append(calcYValue(xList[j]))
    j += 1

#xList.extend(xList)
#
#for k in range(0, len(yList)-1):
#    yList.append(yList[k]*-1)
#
#print xList
#print yList
pylab.plot(xList,yList)
pylab.show()
    
     